package com.lovo.sheyingback.dao;

import com.lovo.sheyingback.bean.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author BDK-THINKPAD
* @description 针对表【t_role(角色表)】的数据库操作Mapper
* @createDate 2023-07-24 21:35:05
* @Entity com.lovo.sheyingback.bean.Role
*/
@Repository
public interface RoleMapper{
    List<Role> listRole();
    List<Role> listRoleByUserId(Integer userId);
    Role getById(Integer id);
    int insert(Role role);
    int insertRoleAndFunction(Integer roleId,Integer functionId);
    int update(Role role);
    int delete(Integer id);
    int deleteRoleUser(Integer id);
    int deleteRoleFunction(Integer id);
}




